package com.gaussian.property.module.biz.service.impl;

import com.gaussian.property.module.biz.entity.SpaceDailyStatistics;
import com.gaussian.property.module.biz.mapper.SpaceDailyStatisticsMapper;
import com.gaussian.property.module.biz.service.ISpaceDailyStatisticsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * ics项目空间维度指标每日汇总 服务实现类
 * </p>
 *
 * @author songqi(13776346982)
 * @since 2024-10-03
 */
@Service
public class SpaceDailyStatisticsServiceImpl extends ServiceImpl<SpaceDailyStatisticsMapper, SpaceDailyStatistics> implements ISpaceDailyStatisticsService {


    @Override
    public int getMaxRiskAreaCount(String projectId, String dateStr) {
        Integer count = baseMapper.getMaxRiskAreaCount(projectId, dateStr);
        return count == null ? 0 : count;
    }
}
